<script>
    export let click = () => {

    }

    export let title = '测试'
</script>

<div class="side-element" on:click={()=>{click}}>
    {title}
</div>

<style lang="less">
  .side-element {
    width: 100%;
    height: 100%;
    background-color: #fff;
    margin: 10px 0;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease-in-out;

    &:hover {
      background-color: #f5f5f5;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }
  }
</style>